<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\Common;

class Rsa2
{
    private $private_key;
    private $public_key;
    private $config;
    public function __construct()
    {
        $res = openssl_pkey_new($this->config);
        openssl_pkey_export($res, $this->private_key, NULL, $this->config);
        $this->public_key = openssl_pkey_get_details($res)["key"];
    }
    public function getKeys()
    {
        $result = [];
        if(!empty($this->private_key)) {
            $result["private_key"] = $this->private_key;
        }
        if(!empty($this->public_key)) {
            $result["public_key"] = $this->public_key;
        }
        return $result;
    }
}

?>